<?php
	class Conexao{
		public function conectar(){
			$conn = null;
			try{
			//Cria um objeto PDO
			$conn = new PDO('mysql:host=localhost;port=3306;dbname=contabic','root','');
			}catch(PDOException $e){
				print "Erro!: ".$e->getMessage()."\n";
				die();
			}
			return $conn;
		}
	}
?>